package com.cloud.model.entity.cityweather;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.cloud.model.entity.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

/**
 * <b><code>CityWeather</code></b>
 * <p/>
 * CityWeather的具体实现
 * <p/>
 * <b>Creation Time:</b> 2019-10-16 14:31:05.
 *
 * @author ${model.author}
 * @version 1.0.0
 * @since cloud-spring-boot-be 1.0.0
 */
@Entity
@Table(name="t_city_weather")
@DynamicInsert
@DynamicUpdate
public class CityWeather extends BaseEntity implements Serializable {

    /**
    * The constant serialVersionUID.
    */
    private static final long serialVersionUID = -1L;

    public CityWeather(){
        super();
    }

    @Column(name = "weather_result_json")
    @ApiModelProperty(value = "和风天气返回的json数据")
    private String weatherResultJson;

    @Column(name = "weatherType")
    @ApiModelProperty(value = "天气数据类型 now:实况天气  forecast:3-10天预报 hourly：逐小时预报 lifestyle：生活指数")
    private String weatherType;

    @Column(name = "city_id")
    @ApiModelProperty(value = "城市id")
    private Long cityId;

    public String getWeatherResultJson() {
        return weatherResultJson;
    }

    public void setWeatherResultJson(String weatherResultJson) {
        this.weatherResultJson = weatherResultJson;
    }

    public String getWeatherType() {
        return weatherType;
    }

    public void setWeatherType(String weatherType) {
        this.weatherType = weatherType;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }
}
